package data;

import java.util.LinkedList;
import java.util.List;

/**
 * used to send around the data for a page request.
 */
public class Request {
	
	private List<String> keywords;
	private String url;
	private int depth;
	private int threads;
	
	public Request(List<String> the_keywords, String the_url, int the_depth, int the_threads){
		List<String> temp = new LinkedList<String>();
		for(String s : the_keywords){
			temp.add(s.toLowerCase());
		}
		keywords = temp;
		url = the_url;
		depth = the_depth;
		threads = the_threads;
	}
	public List<String> getKeywords() {
		return keywords;
	}
	public void setKeywords(List<String> keywords) {
		this.keywords = keywords;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public int getDepth() {
		return depth;
	}
	public void setDepth(int depth) {
		this.depth = depth;
	}
	public int getThreads() {
		return threads;
	}
	public void setThreads(int threads) {
		this.threads = threads;
	}	
}
